/**
  ******************************************************************************
  * @file    main.c 
  * @author  houyannian
  * @version V1.0
  * @date    2022-08-10
  * @brief   Main program body
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "stm32f4xx_it.h"
#include "led.h"
#include "key.h"
#include "exti_key.h"
#include "nvic_conf.h"
#include "systick_delay.h"
#include "system_uart.h"

SYSTEM_STATUS sys_status = START;

int main(void)
{
	board_init();
status:	
    while(sys_status == START)
    {
        LED_RED_ON;
        delay_ms(1000);
        LED_RED_OFF;
        delay_ms(1000);
    }
goto status;	
	return 0;
}

void board_init(void)
{
    led_init();
    exti_key1_init();
    exti_key2_init();
    nvic_init();
    systick_init();
    system_uart_init();
}

